From 7ca5a2347c1463761bb31b87ef96349a525ebaaf Mon Sep 17 00:00:00 2001 From: Jordi Mallach Date: Tue, 3 Mar 2026 09:26:36 +0100 Subject: [PATCH] do not assume python points to python3. Origin: Debian Forwarded: no Gbp-Pq: Name python3.patch --- makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 314f0c506..3fb6495aa 100644 --- a/makefile +++ b/makefile @@ -1006,7 +1006,7 @@ GIT_AVAILABLE := $(shell git --version > /dev/null 2>&1 && echo git) else GCC_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) -dumpfullversion 2> NUL) CLANG_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) --version 2> NUL| head -n 1 | grep clang | sed "s/^.*[^0-9]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*$$/\1/" | head -n 1) -PYTHON_AVAILABLE := $(shell $(PYTHON) --version > NUL 2>&1 && echo python) +PYTHON_AVAILABLE := $(shell $(PYTHON) --version > NUL 2>&1 && echo python3) GIT_AVAILABLE := $(shell git --version > NUL 2>&1 && echo git) endif ifdef MSBUILD @@ -1036,7 +1036,7 @@ CLANG_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) -v 2>&1 >/dev/null | else CLANG_VERSION := $(shell $(TOOLCHAIN)$(subst @,,$(CC)) --version 2> /dev/null | head -n 1 | grep -e 'version [0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | grep -e '[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?' -o | tail -n 1) endif -PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python) +PYTHON_AVAILABLE := $(shell $(PYTHON) --version > /dev/null 2>&1 && echo python3) GIT_AVAILABLE := $(shell git --version > /dev/null 2>&1 && echo git) endif @@ -1055,7 +1055,7 @@ endif endif # asmjs endif # CLANG_VERSION -ifneq ($(PYTHON_AVAILABLE),python) +ifneq ($(PYTHON_AVAILABLE),python3) $(error Python is not available in path) endif -- 2.30.2